package com.hmall.common.client;

import com.hmall.common.dto.PageDTO;
import com.hmall.common.dto.SearchDTO;
import com.hmall.common.pojo.ItemDoc;
import com.hmall.common.pojo.SearchVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description ItemClient
 * @Author zhq
 * @Date 2024-11-15
 */
@FeignClient("itemservice")
@RequestMapping("/item")
public interface ItemClient {
    @PostMapping("/filters")
     SearchVo searchFilters();

    @PostMapping("/lists")
    public PageDTO<ItemDoc> searchList(@RequestBody SearchDTO dTO);
}
